﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title>yukari world</title>
<#include "/lib/base_source.ftl">
    <style type="text/css">
    </style>
</head>
<body>
<div class='whole-container'>
<#include "/lib/header.ftl">
    <div>
        <ul class="breadcrumb">
            <li>圣诞抽奖</li><span class="divider">/</span>
            <li>抽奖链接生成器</li>
        </ul>
    </div>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="container span12">
            <#include "/lib/alert.ftl">
                <div class='main-content'>
                    <div class="well form-inline">
                        <div class='main-action'>
                            <form id="setFlagForm">
                                <div class="control-group">
                                    <label class="control-label">一次抽奖人数</label>
                                    <div class="controls">
                                        <input type="text" id="size" value="${size}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">奖品(同奖品抽中人不重复)</label>
                                    <div class="controls">
                                        <input type="text" id="group" value="">
                                    </div>
                                </div>
                            </form>
                            <div class="control-group">
                                <label class="control-label"></label>
                                <div class="controls">
                                    <a id="lotteryBtn" onclick="jumpUrl()" class="btn btn-info btn-sm">跳转</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function(){
        $('.time').datetimepicker({
            format: 'yyyy-mm-dd',
            autoclose:true,
            minView:2,
            todayBtn:true
        });
    });

    function jumpUrl(){
        var size = $("#size").val();
        var group = $("#group").val();
        var url="${rc.contextPath}/admin/draw/christmas/show?size="+size+"&group="+group;
        window.open(url);
    }



</script>
</body>
</html>